package com.ys.encapsulation;

/**
 * @author CodeYang
 * @Date 2020/12/15 11:04
 */
public class JavaBeanObject {
    /**
     *  name:姓名
     */
    private String name;
    /**
     * address:地址
     */
    private String address;
    /**
     * age:年龄
     */
    private int age;
    /**
     * sex: 性别
     */
    private char sex;
    /**
     * married:是否结婚
     */
    private boolean married;

    public JavaBeanObject() {
    }

    public JavaBeanObject(String id, String address, int age, char sex) {
        this.name = id;
        this.address = address;
        this.age = age;
        this.sex = sex;
    }

    public String getId() {
        return name;
    }

    public void setId(String id) {
        this.name = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
}
